package com.jinghao.tws.entity;

import com.jinghao.core.common.entity.JingHaoBaseEntity;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhTable;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhField;
import com.jinghao.core.common.util.IJingHaoConfiguration.JhCf;

import java.util.Date;
/**
 * (WvFlow)模型对象
 * 
 * @version 1.0
 * @author: 244684437@qq.com
 */
@JhTable(
	jhfields={
			@JhField(jhCf=JhCf.UNID,property="flowUnid"),
			@JhField(jhCf=JhCf.UUID,property="flowUuid")
	},
	note = ""
)
public class WvFlow extends JingHaoBaseEntity<WvFlow> {
	//======================字段列表========================
	/** 流程标识UNID */
	private Integer	flowUnid;

	/** 流程标识UUID */
	private String	flowUuid;

	/** 流程编码 */
	private String	code;

	/** 流程名称 */
	private String	name;

	/** 流程创建者 */
	private String	creator;

	/** 流程创建时间 */
	private Date	createTime;

	/** 流程变更者 */
	private String	updater;

	/** 流程变更时间 */
	private Date	updateTime;

	/** 流程状态(0,禁用;1,启用;2,删除) */
	private Integer	status;

	/** 排序号 */
	private Integer	sort;

	/** 备注 */
	private String	remark;

	public Integer getFlowUnid() {
		return this.flowUnid;
	}

	public void setFlowUnid(Integer flowUnid) {
		this.flowUnid = flowUnid;
	}

	public String getFlowUuid() {
		return this.flowUuid;
	}

	public void setFlowUuid(String flowUuid) {
		this.flowUuid = flowUuid;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdater() {
		return this.updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer(super.toString());
		buffer.append("\n");
		buffer.append("\tflowUnid(流程标识UNID):").append(flowUnid);
		buffer.append("\tflowUuid(流程标识UUID):").append(flowUuid);
		buffer.append("\tcode(流程编码):").append(code);
		buffer.append("\tname(流程名称):").append(name);
		buffer.append("\n");
		buffer.append("\tcreator(流程创建者):").append(creator);
		buffer.append("\tcreateTime(流程创建时间):").append(createTime);
		buffer.append("\tupdater(流程变更者):").append(updater);
		buffer.append("\tupdateTime(流程变更时间):").append(updateTime);
		buffer.append("\n");
		buffer.append("\tstatus(流程状态(0,禁用;1,启用;2,删除)):").append(status);
		buffer.append("\tsort(排序号):").append(sort);
		buffer.append("\tremark(备注):").append(remark);
		return buffer.toString();
	}
	//==================定制内容开始======================
    public enum EWvFlow {
    	/**0:禁用**/
    	status_0(0,"禁用"),
    	/**1:启用**/
    	status_1(1,"启用"),
    	/**2:删除**/
    	status_2(2,"删除");
    	private int key;
    	private String msg;
    	EWvFlow(int key,String msg) {
			this.key = key;
			this.msg=msg;
		}
    	public int getKey(){
    		return this.key;
    	}
    }
	//==================定制内容结束======================
}
